package Practice05.test6;

public abstract class Animal {

    private int legs;

    public Animal(int legs) {
        this.legs = legs;
    }

    public abstract void eat();

    public void walk(){
        System.out.println(legs+"条腿走路");
    }
}
